package kr.hyunist.androidcomplete01saeildamil.ch12;

import java.util.*;

import kr.hyunist.androidcomplete01saeildamil.*;
import android.app.*;
import android.os.*;
import android.widget.*;

public class ListIconTextEx extends Activity {
	ArrayList<MyItem> arItem;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.listviewtest);
		
		arItem = new ArrayList<MyItem>();
		MyItem mi;
		mi = new MyItem(R.drawable.ic_launcher, "삼성테블릿");
		arItem.add(mi);
		mi = new MyItem(R.drawable.ic_launcher, "애플맥북");
		arItem.add(mi);
		mi = new MyItem(R.drawable.ic_launcher, "엘지탭북");
		arItem.add(mi);
		
		MyListAdapter MyAdapter = new MyListAdapter(this, R.layout.icontextex, arItem);
		
		ListView MyList = (ListView) findViewById(R.id.listViewTestlist);
		MyList.setAdapter(MyAdapter);
		
	}
}
